<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.Popup类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_popup.html">Popup</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="classawtk_1_1_popup-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.Popup类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.Popup 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_popup.png" usemap="#awtk.Popup_map" alt=""/>
  <map id="awtk.Popup_map" name="awtk.Popup_map">
<area href="classawtk_1_1_window_base.html" alt="awtk.WindowBase" shape="rect" coords="0,56,113,80"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a9b1c174d7a31b1c424e392b3e7e31265"><td class="memItemLeft" align="right" valign="top"><a id="a9b1c174d7a31b1c424e392b3e7e31265"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Popup</b> (long nativeObj)</td></tr>
<tr class="separator:a9b1c174d7a31b1c424e392b3e7e31265"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63985e4be6753bb9bbdefb9f9e29b9f8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_popup.html#a63985e4be6753bb9bbdefb9f9e29b9f8">setCloseWhenClick</a> (boolean close_when_click)</td></tr>
<tr class="separator:a63985e4be6753bb9bbdefb9f9e29b9f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f56c585370f2a23aa3998605be0ceca"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_popup.html#a4f56c585370f2a23aa3998605be0ceca">setCloseWhenClickOutside</a> (boolean close_when_click_outside)</td></tr>
<tr class="separator:a4f56c585370f2a23aa3998605be0ceca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af279cd7959ff1eb547a3a4dfb543a27d"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_popup.html#af279cd7959ff1eb547a3a4dfb543a27d">getCloseWhenClick</a> ()</td></tr>
<tr class="separator:af279cd7959ff1eb547a3a4dfb543a27d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89547f3807a4781f0c1362dbe51a9211"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_popup.html#a89547f3807a4781f0c1362dbe51a9211">getCloseWhenClickOutside</a> ()</td></tr>
<tr class="separator:a89547f3807a4781f0c1362dbe51a9211"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classawtk_1_1_window_base"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classawtk_1_1_window_base')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classawtk_1_1_window_base.html">awtk.WindowBase</a></td></tr>
<tr class="memitem:a07ecd7b8ff831b14e0945d0754ec2d5f inherit pub_methods_classawtk_1_1_window_base"><td class="memItemLeft" align="right" valign="top"><a id="a07ecd7b8ff831b14e0945d0754ec2d5f"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>WindowBase</b> (long nativeObj)</td></tr>
<tr class="separator:a07ecd7b8ff831b14e0945d0754ec2d5f inherit pub_methods_classawtk_1_1_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18e9d39f0297072196cce80fdf08a7ee inherit pub_methods_classawtk_1_1_window_base"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_window_base.html#a18e9d39f0297072196cce80fdf08a7ee">getTheme</a> ()</td></tr>
<tr class="separator:a18e9d39f0297072196cce80fdf08a7ee inherit pub_methods_classawtk_1_1_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8065caa6c8c87501e42f0aa2888f9a9 inherit pub_methods_classawtk_1_1_window_base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_window_closable.html">WindowClosable</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_window_base.html#aa8065caa6c8c87501e42f0aa2888f9a9">getClosable</a> ()</td></tr>
<tr class="separator:aa8065caa6c8c87501e42f0aa2888f9a9 inherit pub_methods_classawtk_1_1_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a63df3e0914d4ab20fa29ecd71b75a2e7"><td class="memItemLeft" align="right" valign="top"><a id="a63df3e0914d4ab20fa29ecd71b75a2e7"></a>
static <a class="el" href="classawtk_1_1_popup.html">Popup</a>&#160;</td><td class="memItemRight" valign="bottom"><b>cast</b> (long nativeObj)</td></tr>
<tr class="separator:a63df3e0914d4ab20fa29ecd71b75a2e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4809e8a2085e6caadf4122eaf06856dd"><td class="memItemLeft" align="right" valign="top">static Widget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_popup.html#a4809e8a2085e6caadf4122eaf06856dd">create</a> (Widget parent, int x, int y, int w, int h)</td></tr>
<tr class="separator:a4809e8a2085e6caadf4122eaf06856dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60edbc45e426c53890f73dc8c77ff84a"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_popup.html">Popup</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_popup.html#a60edbc45e426c53890f73dc8c77ff84a">cast</a> (Widget widget)</td></tr>
<tr class="separator:a60edbc45e426c53890f73dc8c77ff84a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_static_methods_classawtk_1_1_window_base"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classawtk_1_1_window_base')"><img src="closed.png" alt="-"/>&#160;静态 Public 成员函数 继承自 <a class="el" href="classawtk_1_1_window_base.html">awtk.WindowBase</a></td></tr>
<tr class="memitem:a98005abcb8a39d34b5b91c82370b7f1e inherit pub_static_methods_classawtk_1_1_window_base"><td class="memItemLeft" align="right" valign="top"><a id="a98005abcb8a39d34b5b91c82370b7f1e"></a>
static <a class="el" href="classawtk_1_1_window_base.html">WindowBase</a>&#160;</td><td class="memItemRight" valign="bottom"><b>cast</b> (long nativeObj)</td></tr>
<tr class="separator:a98005abcb8a39d34b5b91c82370b7f1e inherit pub_static_methods_classawtk_1_1_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afef293b79c0d92cdde82061ada03b06a inherit pub_static_methods_classawtk_1_1_window_base"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_window_base.html">WindowBase</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_window_base.html#afef293b79c0d92cdde82061ada03b06a">cast</a> (Widget widget)</td></tr>
<tr class="separator:afef293b79c0d92cdde82061ada03b06a inherit pub_static_methods_classawtk_1_1_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a5c9eaa54fc94b2fd977afdc2d29b52a7"><td class="memItemLeft" align="right" valign="top"><a id="a5c9eaa54fc94b2fd977afdc2d29b52a7"></a>
long&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:a5c9eaa54fc94b2fd977afdc2d29b52a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_attribs_classawtk_1_1_window_base"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_classawtk_1_1_window_base')"><img src="closed.png" alt="-"/>&#160;Public 属性 继承自 <a class="el" href="classawtk_1_1_window_base.html">awtk.WindowBase</a></td></tr>
<tr class="memitem:a446bcc7b77e1cca7b0c2390901e0b0ac inherit pub_attribs_classawtk_1_1_window_base"><td class="memItemLeft" align="right" valign="top"><a id="a446bcc7b77e1cca7b0c2390901e0b0ac"></a>
long&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:a446bcc7b77e1cca7b0c2390901e0b0ac inherit pub_attribs_classawtk_1_1_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>弹出窗口。</p>
<p>弹出窗口是一种特殊的窗口，大小和位置可以自由设置，主要用来实现右键菜单和combo_box的下列列表等功能。</p>
<p>popup_t是window的子类控件，window_base_t的函数均适用于popup_t控件。</p>
<p>在xml中使用"popup"标签创建弹出窗口。如：</p>
<div class="fragment"><div class="line">&lt;<span class="keywordtype">popup</span> <span class="keyword">close_when_click_outside</span>=<span class="stringliteral">&quot;true&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;c&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;m&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;80%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;80&quot;</span></div><div class="line">&lt;<span class="keywordtype">list_view</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span>  <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">item_height</span>=<span class="stringliteral">&quot;30&quot;</span>&gt;</div><div class="line">&lt;<span class="keywordtype">scroll_view</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;view&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span>  <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;-12&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span>&gt;</div><div class="line">&lt;<span class="keywordtype">combo_box_item</span> <span class="keyword">tr_text</span>=<span class="stringliteral">&quot;english&quot;</span>/&gt;</div><div class="line">&lt;<span class="keywordtype">combo_box_item</span> <span class="keyword">tr_text</span>=<span class="stringliteral">&quot;chinese&quot;</span> /&gt;</div><div class="line">&lt;/<span class="keywordtype">scroll_view</span>&gt;</div><div class="line">&lt;<span class="keywordtype">scroll_bar_d</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;bar&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;right&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;12&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">value</span>=<span class="stringliteral">&quot;0&quot;</span>/&gt;</div><div class="line">&lt;/<span class="keywordtype">list_view</span>&gt;</div><div class="line">&lt;/<span class="keywordtype">popup</span>&gt;</div></div><!-- fragment --><p>更多用法请参考：<a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/">popup</a></p>
<p>在c代码中使用函数popup_create创建弹出窗口。如：</p>
<p>创建之后，和使用普通窗口是一样的。</p>
<p>完整示例请参考：<a href="https://github.com/zlgopen/awtk-c-demos/blob/master/demos/combo_box.c">combo_box.c</a></p>
<p>可用通过style来设置控件的显示风格，如字体的大小和颜色等等。如：</p>
<div class="fragment"><div class="line">&lt;<span class="keywordtype">popup</span>&gt;</div><div class="line">&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;default&quot;</span> <span class="keyword">border_color</span>=<span class="stringliteral">&quot;#a0a0a0&quot;</span>&gt;</div><div class="line">&lt;<span class="keywordtype">normal</span> <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#f0f0f0&quot;</span>/&gt;</div><div class="line">&lt;/<span class="keywordtype">style</span>&gt;</div><div class="line">&lt;/<span class="keywordtype">popup</span>&gt;</div></div><!-- fragment --><p>更多用法请参考：<a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/styles/default.xml#L324">theme default</a> </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a60edbc45e426c53890f73dc8c77ff84a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a60edbc45e426c53890f73dc8c77ff84a">&#9670;&nbsp;</a></span>cast()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_popup.html">Popup</a> awtk.Popup.cast </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为popup对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>popup对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>popup对象。 </dd></dl>

</div>
</div>
<a id="a4809e8a2085e6caadf4122eaf06856dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4809e8a2085e6caadf4122eaf06856dd">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Widget awtk.Popup.create </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建popup对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>popup对象。 </dd></dl>

</div>
</div>
<a id="af279cd7959ff1eb547a3a4dfb543a27d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af279cd7959ff1eb547a3a4dfb543a27d">&#9670;&nbsp;</a></span>getCloseWhenClick()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.Popup.getCloseWhenClick </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>点击时是否关闭窗口。 </p>

</div>
</div>
<a id="a89547f3807a4781f0c1362dbe51a9211"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a89547f3807a4781f0c1362dbe51a9211">&#9670;&nbsp;</a></span>getCloseWhenClickOutside()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.Popup.getCloseWhenClickOutside </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>点击到窗口外时是否关闭窗口。 </p>

</div>
</div>
<a id="a63985e4be6753bb9bbdefb9f9e29b9f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a63985e4be6753bb9bbdefb9f9e29b9f8">&#9670;&nbsp;</a></span>setCloseWhenClick()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Popup.setCloseWhenClick </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>close_when_click</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置点击时是否关闭窗口。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">close_when_click</td><td>点击时是否关闭窗口。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a4f56c585370f2a23aa3998605be0ceca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4f56c585370f2a23aa3998605be0ceca">&#9670;&nbsp;</a></span>setCloseWhenClickOutside()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Popup.setCloseWhenClickOutside </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>close_when_click_outside</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置点击窗口外部时是否关闭窗口。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">close_when_click_outside</td><td>点击窗口外部时是否关闭窗口。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/Popup.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
